/**
 * 
 */
package org.vsg.common.pagination.keyword;

/**
 * this class filter some keyword for pagination
 * @author Bill Vison
 *
 */
public class PaginationKeywordFilter {
	private static PaginationKeywordFilter fileter = new PaginationKeywordFilter();
	
	
	public boolean isKeyword(String parameter) {
		boolean isKeyword = false;
		if (parameter.equals(PaginationKeyword.GOTOPAGE_NAME)) {
			isKeyword = true;
		}
		
		else if (parameter.equals(PaginationKeyword.SINGLESORTBY_FIELD)) {
			isKeyword = true;
		}
		
		else if (parameter.equals(PaginationKeyword.GROUPING_FIELD)) {
			isKeyword = true;
		}
		
		return isKeyword;
	}
	
	public static PaginationKeywordFilter getInstance() {
		return fileter;
	}

}
